package com.then.architecture.utils;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * Makes the Call retry on failure
 */
@Documented
@Retention(RUNTIME)
@Target(METHOD)
public @interface Retry {
    //retry times when an IOException is encountered
    int value() default 1;
}


